package roleService

import (
	roleDto "news_for_deepseek_interface/dto/admin/system/role"
	"news_for_deepseek_interface/model"
	adminModel "news_for_deepseek_interface/model/admin"
)

func Create(params roleDto.CreateRequest) error {
	db := model.GetInstance().GetDB().Model(&adminModel.AdminGroupStruct{})

	return db.Create(&adminModel.AdminGroupStruct{
		Name: params.Name,
	}).Error
}
